package day10;

import org.junit.Test;

public class Demo {
	@Test
	public void test1() {
		Student student = new Student();
		student.salary = 10000;
		System.out.println(student.salary);
		student.setName("zhangsan");
		student.setId(1);
		student.setAge(23);
		student.setGender("男");
		
		System.out.println(student.getGender());
		
		System.out.println(student.toString());
		System.out.println(student);
	}
	
	@Test
	public void test2() {
		Student student1 = new Student(1, "张三", 23, "男", 10000);
		String name = student1.getName();
		System.out.println(student1);
		
		Student student2 = new Student(2, "李四", 3, "男", 2323);
		System.out.println(student2);
	}
}
